# $Id: PKGBUILD 86884 2013-03-23 23:10:46Z td123 $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: gem2arch 0.1
# Contributor: theapodan

pkgname=ruby-pkgconfig
_pkgname=pkg-config
pkgver=1.1.4
pkgrel=1
pkgdesc='Implementation of pkg-config in ruby'
arch=('any')
url='http://github.com/rcairo/pkg-config'
license=('LGPL')
depends=('ruby')
source=("http://gems.rubyforge.org/gems/$_pkgname-$pkgver.gem")
sha256sums=('c08fc6596eeef6f0fcfd4c8433010a143c22142f9cccbc2666f32c67c5af8b34')
noextract=("$_pkgname-$pkgver.gem")

package() {
  cd "$srcdir"

  gem install \
    --no-user-install \
    --ignore-dependencies \
    -i "$pkgdir$(ruby -rubygems -e'puts Gem.default_dir')" \
    $_pkgname-$pkgver.gem
}

# vim:set ts=2 sw=2 et:
